package com.andon.lcz.h264rtmp.pusher;

public class PusherNative {

    static {
        System.loadLibrary("h264_rtmp");
    }

    // 设置视频参数
    public native void setVideoOptions(int width, int height, int bitrate, int fps);

    // 推视频流
    public native void pushVideo(byte[] data);

    // 设置音频参数
    public native void setAudioOptions(int sampleRate, int channels);

    // 推音频流
    public native void pushAudio(byte[] buf, int buf_size);

    // 开始推流
    public native void startPush(String url);

    // 获取编码采样个数
    public native int getInputSamples();

    // 停止推流
    public native void stopPush();
}
